<?php /* Smarty version 2.6.19, created on 2012-12-22 17:38:20
         compiled from vietcad/productshome.tpl.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="content"> <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div class="cont_right"> <?php if ($this->_tpl_vars['productcateItems']): ?>
        <?php $_from = $this->_tpl_vars['productcateItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['productcatItem']):
?>
        <div class="boxRight">
            <div class="TshowPic">
                <p> <a href="<?php echo $this->_tpl_vars['productcatItem']->getUrl($this->_tpl_vars['lang']); ?>
" title="<?php echo $this->_tpl_vars['productcatItem']->getName($this->_tpl_vars['lang']); ?>
"> <?php echo $this->_tpl_vars['productcatItem']->getName($this->_tpl_vars['lang']); ?>
</a></p>
            </div>
            <!--End .TshowPic-->
            <?php $this->assign('pid', $this->_tpl_vars['productcatItem']->getId()); ?>
                                <?php $this->assign('listpid', $this->_tpl_vars['procategories']->getSubCategory1($this->_tpl_vars['pid'])); ?>
                                
                                <?php $this->assign('subproItems', $this->_tpl_vars['products']->getObjects(1,"status=1 AND category in (".($this->_tpl_vars['listpid']).") ",$this->_tpl_vars['orderby'],'')); ?>
        <?php if ($this->_tpl_vars['subproItems']): ?>
            <div class="c_boxRight">
                <div class="sanphamrong">
                    <div id="show<?php echo $this->_tpl_vars['i']+1; ?>
"> <a class="next"></a> <a class="prev"></a>
                        <div class="show<?php echo $this->_tpl_vars['i']+1; ?>
">
                            <ul>
                                
                                <?php $_from = $this->_tpl_vars['subproItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['subproItem']):
?>
                                <li>
                                    <div class="want-sp">
                                        <table cellspacing="0" cellpadding="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td class="Fproduct-Kimg"><a href="<?php echo $this->_tpl_vars['subproItem']->getViewUrl($this->_tpl_vars['lang']); ?>
" title="<?php echo $this->_tpl_vars['subproItem']->getName('vn'); ?>
" style="width:166px;"><img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/avatar_upload/products/avatar/<?php echo $this->_tpl_vars['subproItem']->getAvatar(); ?>
" alt="<?php echo $this->_tpl_vars['subproItem']->getName('vn'); ?>
"/></a></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <p><?php echo $this->_tpl_vars['subproItem']->getName('vn'); ?>
</p>
                                </li>
                                <?php endforeach; endif; unset($_from); ?>
                                
                            </ul>
                        </div>
                    </div>
                </div>
                <!--End .sanphamrong--> 
            </div>
            <!--End .c_boxRight--> 
         <?php endif; ?>   
        </div>
        <?php endforeach; endif; unset($_from); ?>
        <?php endif; ?> </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 